package com.csdj.controller;

import com.csdj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user")
public class LoginController {
    @Autowired
    private UserService userService;

    @RequestMapping("/login")
    @ResponseBody
    public  String login(String name ,String password){
        System.out.println("登录名：" + name);
        System.out.println("密码" + password);
       int row =   userService.getUserCount();
        System.out.println(row);
        return  "success";
    }
}
